﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="ucContact.ascx.cs" Inherits="Admin_ucControl_ucContact" %>
<h1>
    Thông tin liên hệ</h1>
<br />
<asp:GridView ID="grdLienHe" runat="server" AutoGenerateColumns="False" Width="50%">
    <Columns>
        <asp:HyperLinkField DataTextField="id" DataNavigateUrlFormatString="~/Admin/thong-tin-lien-he.aspx?id={0}"
            HeaderText="ID" DataNavigateUrlFields="id" HeaderStyle-Width="50px" HeaderStyle-HorizontalAlign="Center">
            <HeaderStyle Width="50px"></HeaderStyle>
            <ItemStyle HorizontalAlign="Center" />
        </asp:HyperLinkField>
        <asp:TemplateField HeaderText="Phone">
            <ItemTemplate>
                <%# Eval("Phone") %>
            </ItemTemplate>
            <ItemStyle HorizontalAlign="Center" />
        </asp:TemplateField>
        <asp:TemplateField HeaderText="Email">
            <ItemTemplate>
                <%# Eval("Email") %>
            </ItemTemplate>
            <ItemStyle HorizontalAlign="Center" />
        </asp:TemplateField>
        <asp:TemplateField HeaderText="Yahoo">
            <ItemTemplate>
                <%# Eval("yahoo") %>
            </ItemTemplate>
            <ItemStyle HorizontalAlign="Center" />
        </asp:TemplateField>
    </Columns>
</asp:GridView>
<asp:Panel ID="panel1" runat="server">
    <table>
        <tr>
            <td style="width: 50%">
                Phone :
            </td>
            <td>
                <asp:TextBox ID="txtPhone" runat="server"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="*"
                    ValidationGroup="submit" ControlToValidate="txtPhone"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td style="width: 50%">
                Email :
            </td>
            <td>
                <asp:TextBox ID="txtEmail" runat="server"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ErrorMessage="*"
                    ValidationGroup="submit" ControlToValidate="txtEmail"></asp:RequiredFieldValidator>
                <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" ErrorMessage="Invalid email address"
                    Display="Static" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"
                    ControlToValidate="txtEmail" SetFocusOnError="True" ValidationGroup="submit"></asp:RegularExpressionValidator>
            </td>
        </tr>
        <tr>
            <td style="width: 50%">
                Yahoo :
            </td>
            <td>
                <asp:TextBox ID="txtYahoo" runat="server"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ErrorMessage="*"
                    ValidationGroup="submit" ControlToValidate="txtYahoo"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td>
            </td>
            <td>
                <asp:Button ID="save" runat="server" Text="Save" OnClick="save_Click" ValidationGroup="submit" />
            </td>
        </tr>
    </table>
</asp:Panel>
